import type { RouteRecordRaw } from "vue-router";
// 默认路由
import login from "./login";
import dashboard from "./dashboard";
import user from "./user/index";
import test from "./test";
const router: RouteRecordRaw[] = [
  login,
  dashboard,
  test,
  user,

  {
    name: "limit",
    path: "/limit",
    component: () => import("_p/limit.vue"),
    meta: {
      hidden: true
    }
  },
  {
    path: "/404",
    name: "404",
    component: () => import("_p/404.vue"),
    meta: {
      hidden: true
    }
  },

  {
    path: "/:pathMatch(.*)*",

    redirect: "/404",
    meta: {
      hidden: true
    }
  }
];

export default router;

// 权限路由

// export const asyncRouter: RouteRecordRaw[] = [test, user];
export const asyncRouter: RouteRecordRaw[] = [test, user];
export const constantRouter: RouteRecordRaw[] = [login, dashboard];
